<?php

    require_once("includes/common.inc.php");

    $page = Pages::CreatePage( $pageInfo->id );
    $items = ArticleTable::GetItemsByType( ArticleType::PRESS_RELEASE, SiteLanguage::EN, true, array(ArticleTable::SORT_PUBLISH_DATE => 'desc') );

    $arrVar = array();
    foreach ( $items as $item )
    {
        $arrVar[] = array
        (
            'publish_date' => date(DateUtils::SHORT_DATE_PATTERN, $item->GetPublishDate()),
            'path'         => $item->GetUrl(),
            'title'        => $item->GetTitle(),
            'excerpt'      => $item->GetExcerpt()
        );
    }
                                           
    $page->SetArrVar('articles', $arrVar); 
    
    $page->Display();
?>